<%-- 
    Document   : menu
    Created on : 03-mar-2012, 17:52:19
    Author     : jaime
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<link rel="shortcut icon" href="./CSS/general/images/clasun.ico" type="image/x-icon" />

<li class="active"><html:link action="pagPrincipal"><img src="./CSS/general/images/logomini.png"/></html:link></li>
<li>
    <c:if test="${usuario.estados.idestado == 1}">
        <html:link action="menuAdministracion.do"><bean:message key="global.admin"/></html:link> 
    </c:if>
</li>
<li><html:link href="listexercise.do?idTema=${temaActual}"><bean:message key="ejercicios.planeta"></bean:message>&nbsp;${titTema}</html:link></li>
<li><html:link action="getRanking.do"><bean:message key="global.ranking"/></html:link></li>        
<li><html:link action="newExerJsp.do"><bean:message key="menu.nuevo"/></html:link></li>
<li class="thumbnail">
    <img src="./avatars/${usuario.avatar}" height="36" width="36">
</li>
<li class="dropdown" id="menu1">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
        ${usuario.alias}
        <b class="caret"></b>
    </a>
    <ul class="dropdown-menu">
        <li><html:link action="editprofile.do"><bean:message key="verPerfil.txt"/></html:link></li>
            <li class="divider"></li>
            <li><html:link action="closesession"><bean:message key="logout.txt"/></html:link></li>
    </ul>
</li>

